package com.rinlink.jbcodec.context;

import com.rinlink.jbcodec.JSONCodec;

public class GenericCreatorContext<T,S> implements CreatorContext<T,S>{

    private JSONCodec.Scheme scheme;
    private S sourceData;
    private T targetData;

    public GenericCreatorContext(JSONCodec.Scheme scheme, S sourceData, T targetData) {
        this.scheme = scheme;
        this.sourceData = sourceData;
        this.targetData = targetData;
    }

    @Override
    public S getSourceData() {
        return this.sourceData;
    }

    @Override
    public T getTargetData() {
        return this.targetData;
    }

    @Override
    public JSONCodec.Scheme getScheme() {
        return this.scheme;
    }


}
